<template>
	<div class="wechat-login">
		<!-- 方式2：自己生成二维码 -->
		<qrcode-vue :value="qrText" :size="200" />
	</div>
</template>

<script setup>
	import QrcodeVue from '@chenfengyuan/vue-qrcode';

	let qrText = "https://open.weixin.qq.com/connect/qrconnect?" +
		"appid=wx1a691a9857bc2fdb"  +
		"&redirect_uri=" + encodeURIComponent("https://chat.deepseek.com/") +
		"&response_type=code" +
		"&scope=snsapi_login" +
		"&state=STATE#wechat_redirect";
</script>

<style scoped>
	.wechat-login {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 20px;
	}

	.custom-qr {
		text-align: center;
		margin-top: 20px;
	}
</style>